package org.cyb.demo.domain;

import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.List;

public class Course {

    private int courseId;
    private String courseName;
    private int courseHour;
    private String courseTeacher;
    private MultipartFile courseImg;
    private List<Chapter> chapterList;
    private Major major;
    public Course() {
        super();
        chapterList = new ArrayList<Chapter>();
        major = new Major();
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public MultipartFile getCourseImg() {
        return courseImg;
    }

    public void setCourseImg(MultipartFile courseImg) {
        this.courseImg = courseImg;
    }

    public String getCourseImageName(){
        return  courseImg.getOriginalFilename();
    }

    public int getCourseHour() {
        return courseHour;
    }

    public void setCourseHour(int courseHour) {
        this.courseHour = courseHour;
    }

    public String getCourseTeacher() {
        return courseTeacher;
    }

    public void setCourseTeacher(String courseTeacher) {
        this.courseTeacher = courseTeacher;
    }

    public List<Chapter> getChapterList() {
        return chapterList;
    }

    public void setChapterList(List<Chapter> chapterList) {
        this.chapterList = chapterList;
    }

    public Major getMajor() {
        return major;
    }

    public void setMajor(Major major) {
        this.major = major;
    }
}
